/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.adcc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vn.adcc.dao.DocumentDao;
import vn.adcc.model.Document;
import vn.adcc.service.DocumentManager;

/**
 *
 * @author ducanh.nguyen
 */
@Service("documentManager")
public class DocumentManagerImpl extends GenericManagerImpl<Document, Integer> implements DocumentManager {
    private DocumentDao documentDao;
    
    public List<Document> search(String query) {
        return super.search(query, Document.class);
    }
    
    @Autowired
    public void setDocumentDao(DocumentDao documentDao){
        this.documentDao = documentDao;
        this.dao = documentDao;
    }
    public DocumentDao getDocumetnDao(){
        return this.documentDao;
    }
    
}
